package com.zeropol2.anyquestion.component.ui.widget;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.zeropol2.anyquestion.R;

/**
 * GNB
 * @author zeropol2
 *
 */
public class GlobalNavigationBar extends LinearLayout {
	private Context mContext;
	private LayoutInflater mInflater;
	private LinearLayout mLayout;
	private TextView mLocationTv;


	
	public GlobalNavigationBar(Context context) {
		super(context);
		mContext = context;
		init();
	}

	public GlobalNavigationBar(Context context, AttributeSet attrs) {
		super(context, attrs);
		mContext = context;
		init();
	}
	
	private void init() {
		mInflater = (LayoutInflater)getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		mLayout = (LinearLayout) mInflater.inflate(R.layout.global_navigation_bar, this);
		mLocationTv = (TextView)mLayout.findViewById(R.id.global_navigation_bar_location);
	}
	
	
	/**
	 * GNB 텍스트 설정
	 * @param text
	 */
	public void setText(String text) {
		mLocationTv.setText(text);
	}

}
